We want to include the gtk-doc subproject in release
tarballs, using --include-subprojects, but that only
works if we've actually built the subproject. And
enabling gtk-doc for dist builds is problematic -
it tends to break meson dist.
So declare the gtk-doc dependency independent of
-Dgtk_doc, and use --force-fallback-for for it.
error('Building the GTK documentation requires Meson 0.52.0')
endif
- # Use gtk-doc as a sub-project from the gtk-doc-for-gtk4 branch
- # for the time being
- dependency('gtk-doc', version: '>=1.99',
- fallback: ['gtk-doc', 'dummy_dep'],
- default_options: ['tests=false', 'yelp_manual=false'])
-
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
fallback: ['graphene', 'graphene_dep'])
iso_codes_dep = dependency('iso-codes', required: false)
+gtk_doc_dep = dependency('gtk-doc', version: '>=1.99',
+ fallback: ['gtk-doc', 'dummy_dep'],
+ default_options: ['tests=false', 'yelp_manual=false'],
+ required: get_option('gtk_doc'))
+
fontconfig_dep = [] # only used in x11 backend
if os_win32